﻿
namespace CodingMuscles.Text.Regexp
{
    /// <summary>
    /// Specifies a positional regular expression match
    /// </summary>
    public enum Anchor
    {
        /// <summary>
        /// The position before the first character in a string or line
        /// </summary>
        StartOfLine,
        /// <summary>
        /// The position before the first character in a string
        /// </summary>
        StartOfString,
        /// <summary>
        /// The position after the last character of a string
        /// </summary>
        EndOfString,
        /// <summary>
        /// The position after the last character of a string or the newline at the end of a string
        /// </summary>
        EndOfStringAndNewline,
        /// <summary>
        /// The position after the end of the string or line
        /// </summary>
        EndOfLine,
        /// <summary>
        /// The position of a word boundary
        /// </summary>
        WordBoundary,
        /// <summary>
        /// The position of a non-word boundary
        /// </summary>
        NonWordBoundary,
        /// <summary>
        /// The position where the previous match ended
        /// </summary>
        PreviousMatch
    }
}
